package com.smrs.report.webapp.action;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.smrs.basicdata.enums.StoreTypeEnum;
import com.smrs.basicdata.model.RegionModel;
import com.smrs.basicdata.model.StoreModel;
import com.smrs.basicdata.service.RegionService;
import com.smrs.deliver.service.DeliverHeaderService;
import com.smrs.report.model.ReportSearchModel;
import com.smrs.report.service.ReportOfDeliver;
import com.smrs.util.DictConstants;
import com.smrs.webapp.action.BaseSmrsAction;

public class ReportBaseAction extends BaseSmrsAction{

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	@Autowired
	protected RegionService regionService;
	protected ReportSearchModel searchModel;
	protected List<StoreTypeEnum> storeTypeList = DictConstants.getInstance().getStoreTypeList();
	protected List<StoreModel> storeList = new  ArrayList<StoreModel>();
	
	private List<RegionModel> regionList = new ArrayList<RegionModel>();
	
	private String titleName="报表";
	
	@Autowired
	protected DeliverHeaderService deliverHeaderService;
	
	@Autowired
	protected ReportOfDeliver reportOfDeliver;
	
	public String getTitleName() {
		return titleName;
	}
	public void setTitleName(String titleName) {
		this.titleName = titleName;
	}
	public List<StoreModel> getStoreList() {
		return storeList;
	}
	public void setStoreList(List<StoreModel> storeList) {
		this.storeList = storeList;
	}
	public List<RegionModel> getRegionList() {
		return regionList;
	}
	public void setRegionList(List<RegionModel> regionList) {
		this.regionList = regionList;
	}
	
	protected void preparePageList(){
		regionList  =regionService.getAllActive();
	}
	public ReportSearchModel getSearchModel() {
		return searchModel;
	}
	public void setSearchModel(ReportSearchModel searchModel) {
		this.searchModel = searchModel;
	}
	public List<StoreTypeEnum> getStoreTypeList() {
		return storeTypeList;
	}
	public void setStoreTypeList(List<StoreTypeEnum> storeTypeList) {
		this.storeTypeList = storeTypeList;
	}
	

}
